import request from '@/utils/request'

// 查询工序参数列表
export function listRoutes(query) {
  return request({
    url: '/base-data-service/base/routes/products/list',
    method: 'get',
    params: query
  })
}

// 查询工序参数详细
export function getRoutes(routeId) {
  return request({
    url: '/base-data-service/base/routes/' + routeId,
    method: 'get'
  })
}

// 新增工序参数
export function addRoutes(data) {
  return request({
    url: '/base-data-service/base/routes',
    method: 'post',
    data: data
  })
}

// 修改工序参数
export function updateRoutes(data) {
  return request({
    url: '/base-data-service/base/routes',
    method: 'put',
    data: data
  })
}

// 删除工序参数
export function delRoutes(routeId) {
  return request({
    url: '/base-data-service/base/routes/' + routeId,
    method: 'delete'
  })
}
